﻿namespace PhotobucketNet
{
    using System;
    using System.IO;
    using System.Xml;

    internal class XmlResponseMessage : ResponseMessage
    {
        private XmlDocument _responseXml = new XmlDocument();
        private bool _status = true;

        public XmlResponseMessage(Stream responseStream)
        {
            this._responseXml.Load(responseStream);
            base._responseString = this._responseXml.OuterXml;
            this._responseXml.SelectSingleNode("descendant::status");
        }

        public XmlDocument ResponseXml
        {
            get
            {
                return this._responseXml;
            }
        }

        public bool Status
        {
            get
            {
                return this._status;
            }
        }
    }
}

